package com.css.zfzx.fxpg.modules.percent.damage.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fxpg.modules.percent.damage.repository.entity.FxDamagePercentEntity;
import com.css.zfzx.fxpg.modules.percent.damage.viewobjects.FxDamagePercentQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author leon
 * @date 2020-11-13
 */

public interface FxDamagePercentService {

    JSONObject queryFxDamagePercents(FxDamagePercentQueryParams queryParams, int curPage, int pageSize);

    FxDamagePercentEntity getFxDamagePercent(String id);

    boolean isRepeat(String structureType);

    void coverFxDamagePercent(FxDamagePercentEntity fxDamagePercent);

    FxDamagePercentEntity saveFxDamagePercent(FxDamagePercentEntity fxDamagePercent);

    FxDamagePercentEntity updateFxDamagePercent(FxDamagePercentEntity fxDamagePercent);

    void deleteFxDamagePercents(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    String exportExcel(FxDamagePercentQueryParams queryParams, HttpServletResponse response);

    List<FxDamagePercentEntity> getFxDamagePercents(FxDamagePercentQueryParams queryParams);

}
